#pragma once
#include "Stdafx.h"
#include "Logger.h"
#include "Object3D.h"
#include "Image.h"

namespace Pulpy
{
	struct Vertex { float x,y,z,u,v; };

	class SkyPlane
	{
	private:
		Vertex* _Vertices;
		unsigned short* _Indices;
		int _NumVertices; // of skyplane
		int _NumIndices;
		TextureImage _Image;
		bool _RenderMesh;
		float _Top;
		float _Scale;
	public:
		SkyPlane(int slices, float radius, float height, float hTile, float vTile, char * texture);
		~SkyPlane() { delete [] _Indices; delete [] _Vertices; }
		void toggleMeshMode() { _RenderMesh = !_RenderMesh; }
		void setScale(float scale) { _Scale = scale; }
		void setTop(float top) { _Top = top; }
		void draw();
		bool checkCollide(const Object3D &ob)
		{
			return false;
		}
	};
}